package com.oneraku.service.controller;

import com.oneraku.service.service.IAliyunService;
import com.oneraku.service.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: hui.ren@huberbuy.com
 * @Date: 2019-09-01 11:15
 */
@RestController
@RequestMapping("/aliyun")
public class AliyunStsController {
    IAliyunService aliyunService;
    @Autowired
    public AliyunStsController(IAliyunService aliyunService) {
        this.aliyunService = aliyunService;
    }
    /**
     * 查询反馈配置
     * @return
     */
    @GetMapping("/sts")
    public R aliyunSts(){
        return R.ok(aliyunService.getSign());
    }
}
